package config

type AppViper struct {
	NaCos
	UserSrv
	ProductSrv
	OrderSrv
	UserEnterSrv
	ArticleSrv
	AdministratorsSrv
	CartSrv
	DistributionSrv
	RandomString
	AliPay
}
type NaCos struct {
	NameSpace string
	DataId    string
	Group     string
	Host      string
	Port      uint64
}
type UserSrv struct {
	Host string
	Port int
}
type ProductSrv struct {
	Host string
	Port int
}
type OrderSrv struct {
	Host string
	Port int
}
type UserEnterSrv struct {
	Host string
	Port int
}
type ArticleSrv struct {
	Host string
	Port int
}
type AdministratorsSrv struct {
	Host string
	Port int
}
type CartSrv struct {
	Host string
	Port int
}
type DistributionSrv struct {
	Host string
	Port int
}

// 邀请码长度
type RandomString struct {
	Log int
}

type AliPay struct {
	APPID     string
	NotifyURL string
	ReturnURL string
	Key       string
}
type T struct {
	Mysql struct {
		User     string `json:"user"`
		Password string `json:"password"`
		Host     string `json:"host"`
		Port     int    `json:"port"`
		Data     string `json:"data"`
	} `json:"mysql"`
	Grpc struct {
		Host string `json:"host"`
		Port int    `json:"port"`
		Db   int    `json:"db"`
	} `json:"grpc"`
	Consul struct {
		Name string `json:"name"`
		Host string `json:"host"`
		Port int    `json:"port"`
	} `json:"consul"`
	Mongodb struct {
		Name     string `json:"name"`
		Password string `json:"password"`
		Host     string `json:"host"`
	} `json:"mongodb"`
	Redis struct {
		Addr     string `json:"addr"`
		Password string `json:"password"`
		Db       int    `json:"db"`
	} `json:"redis"`
	Gin struct {
		Host string `json:"host"`
		Port int    `json:"port"`
	} `json:"gin"`
	Aly struct {
		AccessKeyId     string `json:"accessKeyId"`
		AccessKeySecret string `json:"accessKeySecret"`
	} `json:"aly"`
	Tengxun struct {
		SecretID  string `json:"SecretID"`
		SecretKey string `json:"SecretKey"`
	} `json:"tengxun"`
	Alipay struct {
		Appid      string `json:"Appid"`
		PrivateKey string `json:"PrivateKey"`
		NotifyURL  string `json:"NotifyURL"`
	} `json:"alipay"`
	Es struct {
		Host string `json:"host"`
	} `json:"es"`
	Minio struct {
		AK string `json:"AK"`
		SK string `json:"SK"`
	} `json:"minio"`
}
